package validjson;

import java.util.HashMap;

public class MapBuilder<K,V> extends HashMap<K,V> {
    public static <K,V> MapBuilder<K,V> map(K key, V value) {
        MapBuilder<K, V> map = new MapBuilder<K, V>();
        map.put(key, value);
        return map;
    }

    public MapBuilder<K,V> with(K key, V value) {
        put(key, value);
        return this;
    }
}
